package com.workManager.service;

import com.github.pagehelper.PageInfo;
import com.workManager.pojo.TdOrganization;
import com.workManager.vo.OrganizationVo;

import java.util.List;
import java.util.Map;

/**
 * Created by Thinkpad on 2017/1/12 0012.
 */
public interface OrganizationService {
    List<TdOrganization> findOrganizationList();
    List<TdOrganization> queryUserOrganization(String userId);
    Map<String,Object> add(TdOrganization organization);
    Map<String,Object> edit(Integer organizationId,Integer parentOrgId,String orgName,String description);
    Map<String,Object> del(Integer[] organizationIds);
    PageInfo<OrganizationVo> query(Map<String,Object> params)throws Exception;
}
